package com.cbx.dao;

import com.cbx.pojo.Books;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @author cbx
 * @date 2021/12/26
 * @apiNote
 */
public interface BookMapper {

    int addBook(Books books);

    int deleteBookById(@Param("bookId") int id);

    int updateBook(Books books);

    Books queryBookById(@Param("bookId") int id);

    List<Books> queryAllBook();
}
